{% if options.product.options is not empty %}
    {% set path = options.link.url|default(path('sylius_admin_product_variant_generate', {'productId': options.product.id})) %}

    <a href="{{ path }}" class="btn" {{ sylius_test_html_attribute('generate') }}>
        {{ ux_icon('tabler:arrows-split') }}
        {{ 'sylius.ui.generate'|trans }}
    </a>
{% endif %}
